package vip.zhenzicheng.jpa.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.zhenzicheng.jpa.base.BaseVO;

import java.time.LocalDateTime;

/**
 * @author zhenzicheng
 * @date 2023-04-17 15:56
 */
@ApiModel("学生")
@Data
@EqualsAndHashCode(callSuper = true)
public class StudentVO extends BaseVO {

    @ApiModelProperty(value = "学生id")
    private Integer studentId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("中文昵称")
    private String nickName;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("生日")
    // @SimpleTimeFormat
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;

}
